//
//  BackgroundProtocol.h
//  TabulaImaginarium8
//
//  Created by TA2 on 6/8/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SelectionScrollView.h"
#import "NetworkController.h"
#import "NetworkProtocol.h"

@interface BackgroundProtocol : NetworkProtocol {
	SelectionScrollView *selectionView;
}

@property (nonatomic, retain) SelectionScrollView *selectionView;

- (void)readPacket:(NSArray *)packet fromSocket:(AsyncSocket *)socket;
- (void)sendBackground:(NSString *)path atPoint:(CGPoint)point;
- (void)sendBackground:(NSString *)path atPoint:(CGPoint)point toSocket:(AsyncSocket *)socket;
- (void)sendRequestForBackground:(CGPoint)point;
- (void)sendRequestForAllBackground;
- (void)sendMainBackground:(NSString *)path;
- (void)sendMainBackground:(NSString *)path toSocket:(AsyncSocket *)socket;
- (void)sendRequestForMainBackground;
- (void)sendSuspend;
- (void)sendContinue;
- (void)setupProtocol;

@end
